package com.example.tome.component_router.arouter;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * @Created by TOME .
 * @时间 2018/4/26 10:19
 * @描述 ${路由中心}
 */
//ARouter 提供了大量的参数类型 跳转携带 https://blog.csdn.net/zhaoyanjun6/article/details/76165252
public class RouterCenter {
    /**
     * 首页
     */
    public static void toMain() {
        ARouter.getInstance().build(RouterURLS.BASE_MAIN).navigation();
    }

    /*mvp购物车页面*/
    public static void toShopCart() {
        ARouter.getInstance().build(RouterURLS.MODULE_MVP_SHOP_CART).navigation();
    }

  /*  public static void toMainOder() {
        ARouter.getInstance().build(RouterURLS.BASE_MAIN)
                .withInt(IntentKV.K_TO_MAIN_ORDER, IntentKV.V_TO_MAIN_ORDER)
                .navigation();
    }*/
}
